from django.contrib import admin
from models import Categoria
from models import Evento

class EventoLine(admin.StackedInline):
	model = Evento

class CategoriaAdmin(admin.ModelAdmin):
	extra = 1
	max_num = 1
	inlines = [EventoLine]
	ordering = ['id']

admin.site.register(Categoria, CategoriaAdmin)
admin.site.register(Evento)

